package com.dtwenty.gaming.client.widgets;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.DecoratorPanel;
import com.google.gwt.user.client.ui.DisclosurePanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;

public class CharacterSheetBox extends Composite {
	private DisclosurePanel panel = new DisclosurePanel();
	
	public CharacterSheetBox() {
		setup();
	}
	
	public void setHeaderText(String headerText) {
		panel.setHeader(new Label(headerText));
	}
	
	public void setBodyContent(Widget bodyContent) {
		panel.setContent(bodyContent);
	}
	private void setup() {
		this.initWidget(panel);
		panel.setOpen(true);
		panel.setStylePrimaryName("character_sheet_box");
		panel.setWidth("100%");
	}
}
